/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package course.ya.doc.from.code.model.lexer.project;

public class Keys 
{
    private String kurzName;
    private String fullName;
    public Keys()
    {
        kurzName="";
        fullName="";
    }
    public Keys(String kurzName,String fullName)
    {
        this.kurzName=kurzName;
        this.fullName=fullName;
    }

    @Override
    public int hashCode() 
    {
        int hash=37;
        hash=17*hash+this.kurzName.hashCode();
        hash=17*hash+this.fullName.hashCode();
        return hash;
    }

    @Override
    public boolean equals(Object o) 
    {
           
     if(o == null) {return false;}

     if(!(o instanceof Keys)){return false;}
           
     Keys obj = (Keys) o;
                       
     return kurzName.equals(obj.kurzName)
            && fullName.equals(obj.fullName);
    }

    public String getFullName() {
        return fullName;
    }

    public String getKurzName() {
        return kurzName;
    }
    public void Init(String kurzName,String fullName)
    {
       this.kurzName=kurzName;
       this.fullName=fullName; 
    }

    @Override
    public String toString() 
    {
        return fullName;        
    }
    
    
    
}
